<div id="statistics">
<h3><?php echo($this->header); ?></h3>

<table>
	<thead>
		<tr>
			<th class="gravatar"></th>
			<th><?php echo(Zend_Registry::get('translate')->_('POSITION')); ?></th>
			<th><?php echo(Zend_Registry::get('translate')->_('NAME')); ?></th>
			<th><?php echo($this->listValue); ?></th>
		</tr>
	</thead>
	<tbody>
	    <?php for ($i = 0; $i < 10; ++$i) { 
		$email = $this->statistics[$i]->email;
		$default = "http://" . $_SERVER["SERVER_NAME"] . "/pics/dice/gravatar.gif";
		$size = 40;

		$gravUrl = "http://www.gravatar.com/avatar.php?gravatar_id=".md5(strtolower($email))."&default=".urlencode($default)."&size=".$size; ?> 
												   
			    <tr>
			<td class="gravatar"><img src="<?php echo $gravUrl ?>" alt="" /></td>
		    	<td><?php echo $i + 1; ?></td>
		    	<td class="nameCell"><?php echo ($this->escape($this->statistics[$i]->firstName) . " " . $this->escape($this->statistics[$i]->lastName)); ?></td>
		    	<td><?php echo $this->escape($this->statistics[$i]->sum) ?></td>
			</tr>
	    <?php } ?>
	</tbody>
</table>

<?php
	echo($this->partial('statisticsmenu.phtml'));
?>

</div
